<template>
  <div class="container">
    <div class="base-info">
      <div class="user-look">
        <img :src="userLook" width="50" height="50">
      </div>
      <div class="user-name">
        <p>我是用户</p>
        <p>我是普通用户</p>
      </div>
      <van-icon name="setting-o" class="ico-set"></van-icon>
    </div>
    <!--    底部tabBar-->
    <tab-bar :active="3"></tab-bar>
  </div>

</template>

<script>
  import TabBar from "../base/tabBar";
  import userLook from '../../assets/images/default-user.jpg'

  export default {
    name: "Personal",
    data() {
      return {
        userLook,
      }
    },
    components: {TabBar},
    mounted() {


    }
  }
</script>

<style scoped lang="less">
  /*下面的写法需要使用 npm 安装 less less-loader*/
  .container {
    background-color: #dddddd38;

    .base-info {
      background-color: #42b983;
      padding: 0.5rem 1rem;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;

      .user-look {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.3rem;

        img {
          width: 100%;
          height: 100%;
          border-radius: 50%;
        }
      }

      .ico-set {
        position: absolute;
        right: 0.2rem;
        top: 0.2rem;
        color: #fff;
      }
    }
  }

</style>
